'use strict';

module.exports = (app) => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const Article = app.model.define('articles', {
    id: { type: INTEGER, primaryKey: true },
    title: STRING(30),
    content:STRING(255),
    status:INTEGER,
    cover:STRING(255),
    created_at: DATE,
    updated_at: DATE,
  });

  return Article;
};
